<?php

class IndexController extends Zend_Controller_Action {

    public function init() {
        if (Zend_Auth::getInstance()->hasIdentity()) {
            $validations = new Validations_User();
            $layout = $validations->getUserLayout();
            $this->_helper->layout->setLayout($layout);
        }
    }

    public function indexAction() {

//        $email = "sjk.frills2008@gmail.com";
//        $validator = new Zend_Validate_EmailAddress(array(
//            'allow'=> Zend_Validate_Hostname::ALLOW_DNS,
//            'mx'=> true
//        ));
//        if ($validator->isValid($email)) {           
//            echo '<br>Email is valid';
//        } else {
//            echo '<br>Error:<br>';
//            foreach ($validator->getMessages() as $message) {
//                echo "$message<br>";
//            }
//        }        
    }

}

